package cn.wxxyhw.Entity;

/**
 * 消息实体类
 * @Author: 洪稳
 * @Date: 2019/6/2
 */
public class Message {
    private int id;
    private int read;
    private String fromId;
    private String toId;
    private String date;
    private String content;

    public int getRead() {
        return read;
    }

    public void setRead(int read) {
        this.read = read;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getFromId() {
        return fromId;
    }

    public void setFromId(String fromId) {
        this.fromId = fromId;
    }

    public String getToId() {
        return toId;
    }

    public void setToId(String toId) {
        this.toId = toId;
    }

    public String getDate() {
        return date;
    }

    public void setDate(String date) {
        this.date = date;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    @Override
    public String toString() {
        return "Message{" +
                "id=" + id +
                ", read=" + read +
                ", fromId='" + fromId + '\'' +
                ", toId='" + toId + '\'' +
                ", date='" + date + '\'' +
                ", content='" + content + '\'' +
                '}';
    }

    public Message(){}
}
